import request from '@/utils/request'

// 查询周度店铺销售列表
export function listBiShopSaleWeek(query) {
  return request({
    url: '/sale/BiShopSaleWeek/list',
    method: 'get',
    params: query
  })
}

// 查询周度店铺销售详细
export function getBiShopSaleWeek(id) {
  return request({
    url: '/sale/BiShopSaleWeek/' + id,
    method: 'get'
  })
}
// 查询月度店铺销售列表
export function synData(query) {
  return request({
    url: '/sale/BiShopSaleWeek/synData',
    method: 'get',
    params: query
  })
}
// 新增周度店铺销售
export function addBiShopSaleWeek(data) {
  return request({
    url: '/sale/BiShopSaleWeek',
    method: 'post',
    data: data
  })
}

// 修改周度店铺销售
export function updateBiShopSaleWeek(data) {
  return request({
    url: '/sale/BiShopSaleWeek',
    method: 'put',
    data: data
  })
}

// 删除周度店铺销售
export function delBiShopSaleWeek(id) {
  return request({
    url: '/sale/BiShopSaleWeek/' + id,
    method: 'delete'
  })
}
